﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace GTA.BusinessEntity.Configuration
{
    [Serializable()]
    public class General : ISerializable
    {
        public General()
        {
            StatusColor = new TaskStatusColor();
            TimeSearchInformativeSummaryArchitects = 300;
            TimeSearchInformativeSummaryProjects = 300;
            TimeSearchInformativeSummaryStates = 300;
            TimeSearchInformativeSummaryCategories = 300;
            TimeAlert = 300;
            HideOnTryIcon = false;
        }

        [XmlElement("TimeSearchInformativeSummaryProjects")]
        public Int32 TimeSearchInformativeSummaryProjects;
        [XmlElement("TimeSearchInformativeSummaryArchitects")]
        public Int32 TimeSearchInformativeSummaryArchitects;
        [XmlElement("TimeSearchInformativeSummaryStates")]
        public Int32 TimeSearchInformativeSummaryStates;
        [XmlElement("TimeSearchInformativeSummaryCategories")]
        public Int32 TimeSearchInformativeSummaryCategories;
        [XmlElement("TimeAlert")]
        public Int32 TimeAlert;
        [XmlElement("StatusColor")]
        public TaskStatusColor StatusColor;
        [XmlElement("HideOnTryIcon")]
        public bool HideOnTryIcon;

        #region ISerializable Members

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
